﻿using Entity;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Api.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class UserController : ControllerBase
    {
        private readonly ApiDbContext db;

        public UserController(ApiDbContext context)
        {
            db = context;
        }

        public List<EM_User> GetAllUser()
        {
            return db.EM_User.ToList();
        }

    }
}
